package com.platform.service.impl;

import com.platform.dao.AmountBillDao;
import com.platform.service.AmountBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.platform.entity.AmountBillEntity;

/**
 * 账单流水Service实现类
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-06-03 15:04:03
 */
@Service("amountBillService")
public class AmountBillServiceImpl implements AmountBillService {
    @Autowired
    private AmountBillDao apiAmountBillDao;

    @Override
    public AmountBillEntity queryObject(Long id) {
        return apiAmountBillDao.queryObject(id);
    }

    @Override
    public List<AmountBillEntity> queryList(Map<String, Object> map) {
        return apiAmountBillDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return apiAmountBillDao.queryTotal(map);
    }

    @Override
    public int save(AmountBillEntity apiAmountBill) {
        return apiAmountBillDao.save(apiAmountBill);
    }

    @Override
    public int update(AmountBillEntity apiAmountBill) {
        return apiAmountBillDao.update(apiAmountBill);
    }

    @Override
    public int delete(Long id) {
        return apiAmountBillDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return apiAmountBillDao.deleteBatch(ids);
    }

    @Override
    public List<Map<String, Object>> selectHigh(Map<String, Object> params) {
        return apiAmountBillDao.selectHigh(params);
    }

    @Override
    public BigDecimal selectByChannel(Map<String, Object> param) {
        return apiAmountBillDao.selectByChannel(param);
    }

    @Override
    public BigDecimal selectByUserIdAndType(Map<String, Object> params) {
        return apiAmountBillDao.selectByUserIdAndType(params);
    }

    @Override
    public BigDecimal selectByChannelToday(Map<String, Object> param) {
        return apiAmountBillDao.selectByChannelToday(param);
    }
}
